<?php
namespace App\Goods\Models;

use App\BaseModel;

class CommonName extends BaseModel
{
    protected $table ="zwj_crm_goods_common_names";

    protected $guarded = [];

    /**
     * 定义表关联
     */
    public function hasAttr()
    {
        return $this->belongsToMany(GoodsAttr::class, GoodsCommonNameAttr::class, 'attr_id', 'common_name_id');
    }


}
